package com.cslc.wechat.util;

import java.io.UnsupportedEncodingException;

/**
 * <P>Title: </P>
 * <P>Description:</P>
 * <P>Copyright:Copyright(c)2015</P>
 * <P>Company:cslc.com.cn</P>
 * @author hanfa
 * @date 2015-11-16
 */
public class UrlUtil {
	public static String urlEncodeUTF8(String source){
		String result = source;
		
		try {
			result = java.net.URLEncoder.encode(source, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		
		return result;
	}
}
